package cn.itcast.hotel.resultFul;

import lombok.Data;

import java.util.List;

@Data
public class PageResult <T>{
    private Long total;
    private List<T> hotels;

    public PageResult(Long total, List<T> list) {
        this.total = total;
        this.hotels = list;
    }
}
